From: Tom Maaswinkel Date: Thu, 14 May 2009 21:38:45 +0000 (+0000) Subject: Added a new hook to handle messages that aren't found in the Mediawiki Namespace... X-Git-Tag: 1.31.0-rc.0~41802 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=c028124f8e06569e4e131b2c3d969509b14c999a;p=lhc%2Fweb%2Fwiklou.git Added a new hook to handle messages that aren't found in the Mediawiki Namespace (before checking the message files) --- diff --git a/includes/MessageCache.php b/includes/MessageCache.php index 6f1f9fd616..587fb81775 100644 --- a/includes/MessageCache.php +++ b/includes/MessageCache.php @@ -527,6 +527,8 @@ class MessageCache { } $message = $this->getMsgFromNamespace( $title, $langcode ); } + if($message === false) + wfRunHooks('MessageNotInMwNs', array(&$message,$lckey,$langcode,$isFullKey)); # Try the extension array if ( $message === false && isset( $this->mExtensionMessages[$langcode][$lckey] ) ) {